﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="PolicyDetails.aspx.cs"
    Inherits="iOak.Web.Administration.PolicyDetails" %>

<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#<%=btnCancel.ClientID %>').bind('click', function () {
                location.href = '/Administration/PolicyList.aspx';
                return false;
            });

            $('#<%=btnOk.ClientID %>').bind('click', function () {
                return checkPageData();
            });

            $('#<%=txtPublishedOn.ClientID %>').datepicker();
        });

        function checkPageData() {
            var msg = "";
            if ($.trim($('#<%=txtSubject.ClientID %>').val()) == '') {
                msg = $('#<%=lblSubject.ClientID %>').text();
            }
            if (msg == '') {
                return true;
            }
            else {
                msg = "请输入“" + msg + "”";
                jAlert(msg);
                return false;
            }
        }

    </script>
    <div class="content">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color: #fff;">
            <tr>
                <td width="7" align="left" valign="top">
                    <img src="/images/tab-j_01.jpg" width="7" height="7" />
                </td>
                <td width="755">
                    &nbsp;
                </td>
                <td width="10" align="right" valign="top">
                    <img src="/images/tab-j_02.jpg" width="7" height="7" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <div style="border: 1px solid #ccc">
                        <div style="border: 1px solid #fff">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td>
                                        <div class="content-top">
                                            <div class="top_edit_bg">
                                                申报</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <div style="padding-top: 20px; background: #f9f9f9;">
                                            <table width="100%" border="0" cellspacing="10" cellpadding="0">
                                                <tr>
                                                    <td class="editor-label" style="width: 30%">
                                                        <asp:Label runat="server" ID="lblSubject">人才政策名称</asp:Label>
                                                    </td>
                                                    <td align="left" style="width: 70%">
                                                        <asp:TextBox runat="server" ID="txtSubject" class="must" Width="593px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label" valign="top">
                                                        详细描述
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" 
                                                            Height="500px" Width="594px"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        <asp:Label runat="server" ID="lblPublishedBy">发布者</asp:Label>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtPublishedBy" Width="280"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        <asp:Label runat="server" ID="lblPublishedOn">发布日期</asp:Label>
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtPublishedOn" Width="280"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="editor-label">
                                                        对应简历模板
                                                    </td>
                                                    <td align="left">
                                                        <asp:DropDownList runat="server" ID="ddlResumeTemplate" CssClass="dropDown" Width="280">
                                                        </asp:DropDownList>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        <br />
                                                        <asp:Button runat="server" ID="btnOk" Text="确定" OnClick="btnOk_Click" Width="80px" CssClass="adminButtonBlue"/>
                                                        <asp:Button runat="server" ID="btnCancel" Text="取消" Width="80px" CssClass="adminButtonBlue"/>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="left" valign="bottom">
                    <img src="/images/tab-j_03.jpg" width="7" height="7" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td align="right" valign="bottom">
                    <img src="/images/tab-j_04.jpg" width="7" height="7" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
